//
//  Bill.swift
//  LGMusic
//
//  Created by 梁尚嘉 on 2017/3/22.
//  Copyright © 2017年 LimeGah. All rights reserved.
//

import UIKit
import HandyJSON


/// 榜单数据模型
struct Bill: BaseModel {
    var author : String?
    var pic_big : String?
    var rank_change : Bool?
    var charge : Bool?
    var country : String?
    var piao_id : String?
    var rank : String?
    var lrclink : String?
    var pic_small : String?
    var hot : UInt?
    var has_mv : Bool?
    var all_artist_ting_uid : String?
    var publishtime : String?
    var artist_name : String?
    var file_duration : Float?
    var artist_id : String?
    var album_id : String?
    var style : String?
    var album_title : String?
    var album_no : Int?
    var song_id : String?
    var ting_uid : String?
    var all_artist_id : String?
    var title : String?
    var language : String?

    var isFavorite:Bool?

    mutating func mapping(mapper: HelpingMapper) {
        mapper >>> self.isFavorite
    }

    init() {
        isFavorite = false
    }
}



struct Song:BaseModel {
    var queryId:String?
    var songId:String?
    var songName:String?
    var artistId:String?
    var artistName:String?
    var albumId:String?
    var albumName:String?
    var songPicSmall:String?
    var songPicBig:String?
    var songPicRadio:String?
    var lrcLink:String?
    var time:TimeInterval?
    var songLink:String?
    var showLink:String?
    var format:String?
    var rate:Int?
    var size:UInt?
    var source:String?

}



